class CreateDospyWaterTasks < ActiveRecord::Migration
  def self.up
    create_table :dospy_water_tasks do |t|
      t.string :forum_code,
        :forum_url,
        :proxy_ip_and_port,
        :the_last_exception        
      t.integer :trying_count, :default => 0
      t.string :status, :default => 'waiting'
      t.date :created_on,
        :updated_on
      t.timestamps      
    end
  end

  def self.down
    drop_table :dospy_water_tasks
  end
end
